<?
$maskFunc = function($elem, $key, $obj)
{
    array_push($obj, $elem);
};
$errors = array();
array_walk_recursive($this->element->getMessages(), $maskFunc, &$errors);
$messages = array_unique($errors);
?>

<form class="des4forms" action="<?= $this->element->getAction() ?>" method="<?= $this->element->getMethod() ?>">

<h2>Volunteers Sign Up</h2>

<?if (count($messages)): ?>
<div class="notification error png_bg">

    <? foreach ($messages as $message): ?>
    <div> <?= $message ?></div>
    <? endforeach; ?>

</div>
    <? endif; ?>
<p>
    <label>Email:</label>
    <?= $this->element->email ?>
</p>

<div class="clear"></div>

<p>
    <label>First Name:</label>
    <?= $this->element->name ?>
</p>

<div class="clear"></div>

<p>
    <label>Last Name:</label>
    <?= $this->element->lastName ?>
</p>

<div class="clear"></div>

<p>
    <label>Phone:</label>
    <?= $this->element->phone ?>
</p>

<div class="clear"></div>


<div style="display: none;">
<p>
    <label>Age:</label>
    <?= $this->element->age ?>
</p>

<!--<div class="clear"></div>-->
<!---->
<!--<p>-->
<!--    <label>Password:</label>-->
    <?= $this->element->password ?>
<!--</p>-->
<!---->
<!--<div class="clear"></div>-->
<!---->
<!--<p>-->
<!--    <label>Password confirmation:</label>-->
<!--    --><?//= $this->element->passwordConfirmation ?>
<!--</p>-->

<div class="clear"></div>
</div>

<table>
    <thead>
    <tr>
        <td></td>
        <td>First name</td>
        <td>Last name</td>
        <td>Age</td>
    </tr>
    </thead>

    <tr>

        <td style="text-align: right;">Swimmer 1:</td>
        <td><?= $this->element->swimmer1_firstname ?></td>
        <td><?= $this->element->swimmer1_lastname ?></td>
        <td><?= $this->element->swimmer1_age ?></td>

    </tr>


    <tr>
        <td style="text-align: right;">Swimmer 2:</td>
        <td><?= $this->element->swimmer2_firstname ?></td>
        <td><?= $this->element->swimmer2_lastname ?></td>
        <td><?= $this->element->swimmer2_age ?></td>
    </tr>

    <tr>
        <td style="text-align: right;">Swimmer 3:</td>
        <td><?= $this->element->swimmer3_firstname ?></td>
        <td><?= $this->element->swimmer3_lastname ?></td>
        <td><?= $this->element->swimmer3_age ?></td>
     </tr>
</table>


<table cellspacing="0" cellpadding="3" border="1" align="center" style="border-collapse: collapse">
<tbody>
<tr bgcolor="#003366">
    <td valign="bottom" bgcolor="#FF9900" align="center" class="medium_wht" colspan="2"><strong>Sessions
        Volunteering</strong></td>
</tr>
<tr bgcolor="#003366">
    <td width="50%" valign="bottom" align="center" class="boldText_wht">&nbsp;</td>
    <td width="50%" valign="bottom" align="center" class="boldText_wht">Saturday, June 18th</td>
</tr>
<tr bgcolor="#003366">
    <td width="50%" valign="bottom" align="center" class="boldText_wht">Jobs</td>
    <td width="50%" valign="bottom" align="center" class="boldText_wht">Session 1</td>
</tr>
<tr bgcolor="#ffffff">
    <td width="50%" valign="top" bgcolor="#FFFFFF" align="center" class="medium"><strong>Meet Manager</strong><br>
        (1/session)
    </td>
    <td width="50%" valign="top" bgcolor="#FFFFFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Hughsam, Vivien</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#FFFFFF">
    <td width="50%" valign="top" bgcolor="#99CCFF" align="center" class="medium"><strong>Meet Referee</strong><br>
        (1/session)
    </td>
    <td width="50%" valign="top" bgcolor="#99CCFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Grose, Bernie</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#FFFFFF">
    <td width="50%" valign="top" align="center" class="medium"><strong>Starter</strong><br>
        (1/session)
    </td>
    <td width="50%" valign="top" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Lin, Katie</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#FFFFFF">
    <td valign="top" bgcolor="#99CCFF" align="center" class="medium"><strong>Chief Timekeeper</strong><br>
        (1/session)
    </td>
    <td valign="top" bgcolor="#99CCFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Mo, Jim</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#99CCFF">
    <td valign="top" bgcolor="#FFFFFF" align="center" class="medium"><strong>Head Lane Timekeeper and Strokes &amp;
        Turns</strong><br>
        (6/session)
    </td>
    <td valign="top" bgcolor="#FFFFFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Tran, Khuan</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Shklyarman, Michael</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Suen, Calvert</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Hewwing, Lilly</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Marinac (rhac), Dennis</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Chan (rhac), Richard</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#FFFFFF">
    <td valign="top" bgcolor="#99CCFF" align="center" class="medium"><strong>Timekeeper</strong><br>
        (12/session)
    </td>
    <td valign="top" bgcolor="#99CCFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Lam, Amy</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Yeung, Jennie</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Liu, Zhen</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Wang, Sihua</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Kwong, Audrey</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Yu, Henry</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">lee, Sam</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Vivanco (rhac), Madeleyne</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Test, Test</td>
            </tr>

            </tbody>
        </table>
        <table width="100%" bgcolor="#66CC00">
            <tbody>
            <tr>
                <td width="85%" align="center">&nbsp;&nbsp;&nbsp;<input type="radio" class="input" value="132"
                                                                        name="Session1"></td>
                <td align="right" class="footer">3</td>
            </tr>
            </tbody>
        </table>

    </td>
</tr>
<tr bgcolor="#99CCFF">
    <td valign="top" bgcolor="#FFFFFF" align="center" class="medium"><strong>Backup Timekeeper</strong><br>
        (2/session)
    </td>
    <td valign="top" bgcolor="#FFFFFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Liong, Frankie</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Lin, Wing</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#FFFFFF">
    <td valign="top" bgcolor="#99CCFF" align="center" class="medium"><strong>Turning End - Strokes &amp;
        Turns</strong><br>
        (3/session)
    </td>
    <td valign="top" bgcolor="#99CCFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Ko, Benny</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Poon, Chi</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Li, Chang</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#FFFFFF">
    <td width="50%" valign="top" bgcolor="#FFFFFF" align="center" class="medium"><strong>Chief Finish Judge</strong><br>
        (2/session)
    </td>
    <td width="50%" valign="top" bgcolor="#FFFFFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Chow, Jack</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Murphy, Greg</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#FFFFFF">
    <td width="50%" valign="top" bgcolor="#99CCFF" align="center" class="medium"><strong>Clerk of Course</strong><br>
        (2/session)
    </td>
    <td width="50%" valign="top" bgcolor="#99CCFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Chan, winnie</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Man, Esther</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#99CCFF">
    <td width="50%" valign="top" bgcolor="#FFFFFF" align="center" class="medium"><strong>Marshall</strong><br>
        (2/session)
    </td>
    <td width="50%" valign="top" bgcolor="#FFFFFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Preece, Joni</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Cheng, Shelly</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#99CCFF">
    <td valign="top" bgcolor="#99CCFF" align="center" class="medium"><strong>***Safety Marshal / Marshal</strong><br>
        (2/session)
    </td>
    <td valign="top" bgcolor="#99CCFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Bowmile, Rosalyne</td>
            </tr>

            <tr>
                <td valign="middle" align="center" class="small">Yona, Dafna</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#99CCFF">
    <td width="50%" valign="top" bgcolor="#FFFFFF" align="center" class="medium"><strong>Recorder/Scorer</strong><br>
        (1/session)
    </td>
    <td width="50%" valign="top" bgcolor="#FFFFFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Cheng, Kevin</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#ffffff">
    <td width="50%" valign="top" bgcolor="#99CCFF" align="center" class="medium"><strong>Runner-Chief
        Timekeeper</strong><br>
        (1/session)
    </td>
    <td width="50%" valign="top" bgcolor="#99CCFF" align="center">
        <table width="100%" border="1" style="border-collapse: collapse">

            <tbody>
            <tr>
                <td valign="middle" align="center" class="small">Dong, Yanan</td>
            </tr>

            </tbody>
        </table>
    </td>
</tr>
<tr bgcolor="#FFFFCC">
    <td width="50%" valign="top" align="center" class="medium"><b>Click to<br>
        De-Select Session</b></td>
    <td width="50%" valign="middle" align="center">
        <input type="radio" checked="" value="0" class="input" name="Session1"></td>
</tr>
</tbody>
</table>

<p>
    <?= $this->element->submit ?>
</p>

</form>